const joi = require("joi");

const goods_id = joi.number().min(1).required();

const amount = joi.number().min(1).required();

const change = joi.number().required();

const add_cart_schema = {
  body: {
    goods_id,
    amount,
  }
}

const update_amount_schema = {
  body: {
    id: goods_id,
    change,
  }
}

const remove_cart_schema = {
  body: {
    id: goods_id,
  }
}

module.exports = {
  add_cart_schema,
  update_amount_schema,
  remove_cart_schema
}